//
//  AutherResultsViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/6.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AutherResultsViewController.h"
#import "AutherResultsViewModel.h"
#import "CertificationManageViewController.h"

@interface AutherResultsViewController ()
@property(nonatomic,strong)AutherResultsViewModel * autherResultsViewModel;
@end

@implementation AutherResultsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title =@"认证结果";
    [self addNavigationItemWithTitles:@[@""] isLeft:YES target:self action:@selector(no) tags:@[@33] theButTitColor:[UIColor clearColor] titFont:SYSTEMFONT(15)];
    [self addNavigationItemWithTitles:@[@"完成"] isLeft:NO target:self action:@selector(submintAction) tags:@[@33] theButTitColor:kColor_Rule_Yellow titFont:SYSTEMFONT(15)];
    self.autherResultsViewModel = [[AutherResultsViewModel alloc] initWithViewToViewScrollView:self.myScrollView theSuperView:self.view];
    kWeakSelf(self);
    self.autherResultsViewModel.Block_PushRootAction = ^{
        [weakself.navigationController popToRootViewControllerAnimated:YES];
    };
}

-(void)no{}

-(void)submintAction{
//    [self.navigationController popToRootViewControllerAnimated:YES];
    CertificationManageViewController * certificationVC = [CertificationManageViewController new];
    certificationVC.cerType = CertificationType_Failure;
    [self.navigationController pushViewController:certificationVC animated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
